<!DOCTYPE html>
<html>

<head>
      <title>后台管理系统 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link href="__SKIN__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <script src="__SKIN__/js/jquery.js"></script>
      <script src="__SKIN__/js/jquery.form.js"></script>
      <script src="__SKIN__/js/jmzhfsform.js"></script>
      <link href="__SKIN__/font-awesome/css/font-awesome.min.css" rel="stylesheet">
      <!-- Latest compiled and minified CSS -->
      <link rel="stylesheet" href="__SKIN__/bootstrap-table/bootstrap-table.min.css">
      <!-- Latest compiled and minified JavaScript -->
      <script src="__SKIN__/bootstrap-table/bootstrap-table.min.js"></script>
      <!-- Latest compiled and minified Locales -->
      <script src="__SKIN__/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
      <link href="__SKIN__/css/admin.css?v=1" rel="stylesheet">

</head>

<body class="gray">



      <div class="formpanel">

            <div class="formtitle">添加菜单</div>
            <form class="form-horizontal" id="form1" method="post" >
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              顶级分类：
                        </div>
                        <div class="col-2  ">
                              <select class="form-control" id="parentid" name="parentid">
                                    <option value="0">顶级菜单</option>
                                    {foreach name="menulist" item="vo" key="key" offset="0" length='200'}
                                    {if $vo.parentid==0 }
                                    <option value="{$vo.id}" {if $vo.id==$parentid }selected {/if}> {$vo.title}</option>
                                          {/if} {/foreach} </select> </div> <div class="col">
                                          <div class="myformrow_hint">请输入菜单名称</div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              名称：
                        </div>
                        <div class="col-2  ">
                              <input type="text" class="form-control forminputsm" id="title" name="title" value="" required>
                              <div class="invalid-feedback">Example invalid feedback text</div>
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              控制器：
                        </div>
                        <div class="col-2  ">
                              <input type="text" class="form-control forminputsm" id="controller" name="controller"
                                    value="" required>
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              方法：
                        </div>
                        <div class="col-2  ">
                              <input type="text" class="form-control " id="action" name="action" value="" required>
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              网址：
                        </div>
                        <div class="col-2  ">
                              <input type="text" class="form-control " id="url" name="url" value="" >
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              图标：
                        </div>
                        <div class="col-2  ">
                              <input type="text" class="form-control " id="icon" name="icon" value="">
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              排序：
                        </div>
                        <div class="col-2  ">
                              <input type="text" class="form-control " id="ordernum" name="ordernum" value="" required>
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">

                        </div>
                        <div class="col-2 center">
                              <button class="btn btn-outline-primary  " type="submit">添加</button>
                        </div>
                        <div class="col">

                        </div>
                  </div>
            </form>

      </div>


      </div>


      <script type="text/javascript">
         

            $(function () {
                  formsubmit('form1','add');
            });
      </script>


</body>


</html>